<h1>New sale</h1>

<%= error_messages_for :sale %>

<% form_for(@sale) do |f| %>
  <p>
    <b>Client</b><br />
    <%= f.text_field :client %>
  </p>

  <p>
    <b>Product</b><br />
    <%= f.text_field :product %>
  </p>

  <p>
    <b>Date</b><br />
    <%= f.date_select :date %>
  </p>

  <p>
    <b>Price</b><br />
    <%= f.text_field :price %>
  </p>

  <p>
    <b>Quantity</b><br />
    <%= f.text_field :quantity %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', sales_path %>
